package com.itheima.tanhua.dubbo.mappers;

import com.itheima.tanhua.model.domain.User;
import com.itheima.tanhua.model.domain.UserInfo;
import com.itheima.tanhua.model.vo.*;

import javax.xml.crypto.Data;
import java.util.Date;
import java.util.List;

public interface UserMapper {
    public User selectUserBymobile(String mobile);
//    public void insertUserInfo(UserInfo userInfo);

    //通过电话获取用户id
    Long getUserIdByPhone(String phone);

    //添加用户
    void insertUserPhone(LoginVerificationVo loginVerificationVo);

    //添加用户详细信息
    void addUserInfo(UserInfo userInfo);

    //查询用户设置
    SettingsVo selectUserSettingsById(Long id);

    //陌生人问题 无则添加有则修改
    void insertQuestion(String content, Long id);

    //通知设置 无则添加有则修改
    void saveSetting(SettingsVo vo);

    //获取黑名单
    List<BlackListVo> getBlacklist(Long id);

    //取消黑名单
    void deleteBlackList(Integer uid,Long id);

    //获取动态列表
    List<RecommendationVo> getRecommendationVoList(Integer age, String city);

    boolean updateUserInfo(UserInfo userInfo);

    UserInfo getUserInfo(Long userId);
}
